package com.wicket.okrframework.biz.service.dto.common;


import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc OrgPositionIdNameDto
 * @使用场景
 */
@Data
public class OrgPositionIdNameDto extends BaseDto implements Serializable {

    /**
     * 职务名称ID:
     */
    @ApiModelProperty("职务名称ID")
    private String positionIdNameId;

    /**
     * 职务名称:
     */
    @ApiModelProperty("职务名称")
    private String positionIdName;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      OrgPositionIdNameDto that = (OrgPositionIdNameDto) o;
      return  positionIdNameId == that.positionIdNameId&&positionIdName == that.positionIdName&&subjectLifeCycle == that.subjectLifeCycle;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), positionIdNameId,positionIdName,subjectLifeCycle);
    }

}
